<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <button>处理学生根目录</button>
     <button>搬砖</button>
     <button>刷墙</button>
     <button>修地板</button>
     <hr>
      <div id="showdata"></div>
 
</body>
</html>
<script src='./utils/myquery.js'></script> 
<script>
let btns = document.getElementsByTagName("button");

btns[0].onclick=()=>{
    $.ajax({
        type:"get",
        url:"/a",
        success(data){
          document.getElementById("showdata").innerHTML=data;
        }
    })
}
btns[1].onclick=()=>{
    $.ajax({
        type:"get",
        url:"/a/one",
        success(data){
          document.getElementById("showdata").innerHTML=data;
        }
    })
}

btns[2].onclick=()=>{
    $.ajax({
        type:"get",
        url:"/a/two",
        success(data){
          document.getElementById("showdata").innerHTML=data;
        }
    })
}

btns[3].onclick=()=>{
    $.ajax({
        type:"get",
        url:"/a/three",
        success(data){
          document.getElementById("showdata").innerHTML=data;
        }
    })
}
</script> 

